short circuit operation in java 8